import { RouterProvider } from "react-router-dom";
import router from "@/router/config";
import MainContent from "@/views/Laout/mainContent";
import useMedium from "./hooks/useMedium";
import { usePageStayTimeContext } from "@/hooks/useCollection/index";
function App() {
  const { Meduicontext } = useMedium();
  const pageStayTimeHook = usePageStayTimeContext();
  const hooks = pageStayTimeHook.usePageStayTime();
  if (hooks) {
    hooks();
  }

  return (
    <>
      <MainContent>
        <Meduicontext>
          <RouterProvider router={router} />
        </Meduicontext>
      </MainContent>
    </>
  );
}

export default App;
